import axios from "../api"; // 导入接口配置
/**
 * 下载模板
 * @param params
 * @returns
 */
export const GetModelFile = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetModelFile", params);
};

/**
 * 数据查询
 * @param params
 * @returns
 */
export const GetProduceInfomation = async (params: any) => {
  return await axios.post(
    "/api/ProduceInfomation/GetProduceInfomation",
    params
  );
};

/**
 * 手动添加数据
 * @param params
 * @returns
 */
export const InsertProduceInfomation = async (params: any) => {
  return await axios.post(
    "/api/ProduceInfomation/InsertProduceInfomation",
    params
  );
};

/**
 * 手动添加数据（EXCEL）
 * @param params
 * @returns
 */
export const InsertProduceInfomationByExcel = async (params: any) => {
  return await axios.post(
    "/api/ProduceInfomation/InsertProduceInfomationByExcel",
    params
  );
};

/**
 * 新增生产信息(mes)
 * @param params
 * @returns
 */
export const InsertProduceInfoFromMes = async (params: any) => {
  return await axios.post(
    "/api/ProduceInfomation/InsertProduceInfoFromMes",
    params
  );
};
/**
 * 获取生产信息（MES）(mes)
 * @param params
 * @returns
 */
export const GetProduceInfoFromMes = async (params: any) => {
  return await axios.post(
    "/api/ProduceInfomation/GetProduceInfoFromMes",
    params
  );
};

/**
 * 上传EXCEL
 * @param params
 * @returns
 */
export const UploadExcelFile = async (params: any) => {
  return await axios.post("/api/File/UploadExcelFile", params);
};
